import 'package:flutter/material.dart';

abstract class ViewModel extends ChangeNotifier {

  bool _hasDispose = false;

  @override
  void dispose() {
    _hasDispose = true;
    super.dispose();
  }

  @override
  void notifyListeners() {
    if(_hasDispose) return;
    super.notifyListeners();
  }

}
